"""
@Project: pythonPro1
@Name: _00tools.py
@Author: linxin_liu
@Date: 2022/10/12 14:43
卷积：可以特征提取
"""
import cv2

# img = cv2.imread('D:/tools/image_operation/cat.png')
import numpy as np


def cv_show(windows_name, image, time):
    cv2.imshow(windows_name, image)  # 创建一个窗口，命名image，并展示窗口
    cv2.waitKey(time)  # 窗口显示时间，参数为0表示按任意键销毁
    cv2.destroyAllWindows()  # 销毁所有窗口


# cv_show('a', img, 3000)
img = cv2.imread('D:/tools/image_operation/mirror2.png', cv2.IMREAD_GRAYSCALE)  # cv2.IMREAD_GRAYSCALE
# img1 = cv2.resize(img, (50, 50))  # 修改图像大小，会切割
# cv_show('1', img, 5000)
# print(img.shape)
# cv2.imwrite('D:/tools/image_operation/mirror3.png', img) 将图像存储在本地。
# print(img)
